package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.api.document.rep.rule.LimitAttatchItemBaseDto;
import com.cmc.cloud.cmclink.doc.api.document.rep.rule.LimitRuleItemRespDto;
import com.cmc.cloud.cmclink.doc.entity.LimitAttatchItemDO;
import com.cmc.cloud.cmclink.doc.entity.LimitRuleItemDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author lzp
 */
@Mapper
public interface LimitRuleAttatchConvert {

    LimitRuleAttatchConvert INSTANCE = Mappers.getMapper(LimitRuleAttatchConvert.class);

    /**
     * 属性转换
     *
     * @param limitAttatchItemDoList
     * @return
     */
    List<LimitAttatchItemBaseDto> convertLimitRuleRespDto(List<LimitAttatchItemDO> limitAttatchItemDoList);
}
